<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
/* @var $form CActiveForm */
?>
<div class="accordion zyBorder01" id="search-form">
	<div class="accordion-group zyBorder0 well">
		<div id="collapseOne" class="accordion-body collapse" style="height: 0px;">
			<div class="accordion-inner zyBorder0">
<?php echo "<?php \$form=\$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl(\$this->route),
	'method'=>'get',
		)); ?>\n"; ?>
<?php $i=1;foreach($this->tableSchema->columns as $column): ?>
<?php 	
		$field=$this->generateInputField($this->modelClass,$column);
		if(strpos($field,'password')!==false)
			continue;
?>
<?php echo $i>=7?"<!--":'';?>
<?php echo $i%2==1?"\t<div class=\"row-fluid\">\n":'';?>
		<div class="span6">
			<div class="form-row control-group row-fluid">
				<?php echo "<?php echo \$form->label(\$model,'{$column->name}'); ?>\n"; ?>
					<div class="controls span7">
						<?php echo "<?php echo ".$this->generateActiveField($this->modelClass,$column)."; ?>\n"; ?>
					</div>
			</div>
		</div>
<?php echo $i%2==0?"\t</div>\n":'';?>
<?php echo $i>=7?"-->":'';?>
<?php $i++;endforeach; ?>
<?php echo $i%2==0?"\t</div>\n":'';?>
	<div class="form-actions row-fluid" style="margin-bottom:0; padding:5px;">
    	<div class="span12">
			<?php echo "<?php echo CHtml::submitButton('Search',array('class'=>'btn btn-secondary zyBtn02')); ?>\n"; ?>
        	<button class="btn btn-link zyBtn04" rel="tooltip" data-placement="left" data-original-title="<?php echo "<?php echo Yii::t('common','You may optionally enter a comparison operator (<b>&lt;</b>, <b>&lt;=</b>, <b>&gt;</b>, <b>&gt;=</b>, <b>&lt;&gt;</b> or <b>=</b>) at the beginning of each of your search values to specify how the comparison should be done.');?>";?>"><?php echo "<?php echo Yii::t('common','Explanation');?>";?></button>
        </div>
    </div>
				<?php echo "<?php \$this->endWidget(); ?>\n"; ?>
		</div>
	</div>
</div>